# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         test04
# Description:
# Author:       98745
# Date:         2019/4/7
#-------------------------------------------------------------------------------

import re

code='8765 2344'
s='(\d{4}) \d{4}'
m=re.match(s,code)
print(m.group(1))


